package net.yxsoft.enumclass;

import rapid.core.EnumClsBase;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by leo on 2016/5/13.
 */
public class StateEnumCls extends EnumClsBase<StateEnumCls> {
  public StateEnumCls(String text, String value) {
    super(text, value);
  }

  public static StateEnumCls ENABLED = new StateEnumCls("启用", "1");

  public static StateEnumCls DISABLED = new StateEnumCls("禁用", "0");

  public static List<StateEnumCls> COLLECTS_DEFAULTS = new ArrayList<StateEnumCls>() {
    {
      add(ENABLED);
      add(DISABLED);
    }
  };
}
